
#export TCHAIN_PATH=/home/dmitryf/devel/ARM7/gcc_bootstrap/gcc-compiler
#export TCHAIN_PATH=/home/dmitryf/devel/ARM7/gcc/gcc-compiler
export TCHAIN_PATH=~/Dropbox/devel/tools/CC/gcc/arm7/gcc-compiler-x64

# Toolchain prefix (i.e arm-elf -> arm-elf-gcc.exe)
#TCHAIN = arm-elf
TCHAIN = $(TCHAIN_PATH)/bin/arm-none-eabi
#TCHAIN = arm-linux-gnueabi


#FLASH_TOOL = UVISION
FLASH_TOOL = OPENOCD

#USE_THUMB_MODE = YES
USE_THUMB_MODE = NO

# MCU name and submodel
MCU      = arm7tdmi-s
SUBMDL   = LPC2368

## not supported in this example:
## Create ROM-Image (final)
RUN_MODE=ROM_RUN
## Create RAM-Image (debugging) - not used in this example
#RUN_MODE=RAM_RUN

## not supported in this example:
## Exception-Vector placement only supported for "ROM_RUN"
## (placement settings ignored when using "RAM_RUN")
## - Exception vectors in ROM:
#VECTOR_LOCATION=VECTORS_IN_ROM
## - Exception vectors in RAM:
#VECTOR_LOCATION=VECTORS_IN_RAM
#LOADER = /cygdrive/d/Projects/LPC_BootLoader/LPC_BootLoader/LPC_BootLoader/bin/Release/LPC_BootLoader.exe
LOADER = ~/Dropbox/Projects/AA/Software/lpc_bootloader/for_linux/lpc_loader
LOADER_DEV = /dev/ttyACM0

MICRO_TYPE = LPC23xx
DEBUG_MODE = APP_DEBUG
LIBNAME = usbstack.a
# Target file name (without extension).
REV=$(shell svnversion | sed 's/.*://' | sed 's/M//')
VER = 1
VERSION = $(VER).$(REV)

# List C source files here. (C dependencies are automatically generated.)
# use file-extension c for "c-only"-files
SRC =  #$(TARGET).c ##sysTime.c uart.c

# DISPLAY = LCD__GRAPHICAL
# MODEM = MODEM_TYPE__SIMCOM
# HARDWARE = HARDWARE__SIMPHONY_A
# ADDITIONAL_DEV_1 = COIN_VALIDATOR
# COUNTRY = COUNTRY__MEXICO



# Options
DISPLAY = LCD__GRAPHICAL

# DATE="$(shell date +%d/%m/%Y)"
DAY=$(shell date +%d)
MONTH=$(shell date +%m)
YEAR=$(shell date +%Y)

#MODEM = MODEM_TYPE__SIMCOM
MODEM = MODEM_TYPE__MOTOROLA
HARDWARE = HARDWARE__VIA_SMC

DEVICE_1 = NO_COIN_VALIDATOR
DEVICE_2 = NO_RF_CHANNEL

OPTION_1 = _
OPTION_2 = _ 

# ifeq ($(MODEM),MODEM_TYPE__MOTOROLA)
# TARGET = AA_m_$(VERSION)
# else
# TARGET = AA_$(VERSION)
# endif

TARGET = c15a_$(VERSION)



# List C source files here which must be compiled in ARM-Mode.
# use file-extension c for "c-only"-files

#SRCARM += usbhw_lpc.c usbcontrol.c usbinit.c usbstdreq.c
# SRCARM =  main.c uart.c Sys.c Init.c SysClock.c #armVIC.c 
# SRCARM += VCom.c fifoBuf.c #serial_fifo.c
# SRCARM += utils.c App.c GPRS_Channel.c #USB_Channel.c 
# SRCARM += uart_Receivers.c mModem.c OS.c imem.c efmem.c Config.c Services.c 
# SRCARM += Cmd.c std_io.c SMS.c Status.c RTC.c GPS.c ATD.c dss.c spi.c Outputs.c Inputs.c
# SRCARM =  main.c OS.c Sys.c SysClock.c utils.c Run.c 

# SRCARM = main.c my_macros.c SysClock.c Sys.c USART.c ModemStr.c Receivers.c String.c LCD.c Init.c
# SRCARM += ModemService.c Keypad.c DataMode.c IMSI_Range.c AuxPort.c Installer.c Application.c
# SRCARM += GPRS.c Advanced_Services.c ShortCuts.c glcd.c font.c spi.c Command.c Passwords.c cmd.c
# SRCARM += Const.c Config.c Analog.c ex_eeprom.c cdr.c Sound.c menu.c menu_strings.c Status.c 
# SRCARM += eeprom.c imem.c utils.c ManufactTest.c TopUp.c m.c CoinsValidator.c Debug.c time.c
# SRCARM += Prefix.c SpeedDial.c VCom.c fifoBuf.c SavedData.c io_int.c pwm.c RF.c doc.c MoneyDeposit.c
# SRCARM += sm.c sim.c SendMsg.c Loto.c Credit.c LottoMenu.c MessageBox2.c LottoSettings.c


# SRCARM = printf.c main.c macros.c SysClock.c Sys.c String.c  Receivers.c fifoBuf.c modem.c VCom.c 
# SRCARM += OS.c Init.c ex_eeprom.c cmdp.c USART.c debug.c 

SRCARM = main.c Sys.c macros.c SysClock.c string.c Receivers.c Init.c VCom.c fifoBuf.c OS.c #modem.c  
SRCARM += USART.c printf.c debug.c ex_eeprom.c cmdp.c outf.c sscanf.c #sms.c sim.c isd.c dtmf.c
SRCARM += storage.c entrys.c iflash.c outp_drv.c Config.c utils.c app.c #apps.c #app_menu.c menu_msg.c
SRCARM += Analog.c

CSRCS = $(SRC)
CSRCS += $(SRCARM)

ifeq ($(DEBUG_MODE),USB_DEBUG)
MY_DEBUG = USB_DEBUG
SRCARM += console.c printf.c
else

ifeq ($(DEBUG_MODE),APP_DEBUG)
MY_DEBUG = APP_DEBUG
# SRCARM += printf.c #debug.c
else
MY_DEBUG = NO
endif

endif


# List C++ source files here.
# use file-extension cpp for C++-files (use extension .cpp)
CPPSRC = 

# List C++ source files here which must be compiled in ARM-Mode.
# use file-extension cpp for C++-files (use extension .cpp)
#CPPSRCARM = $(TARGET).cpp
CPPSRCARM = 

# List Assembler source files here.
# Make them always end in a capital .S.  Files ending in a lowercase .s
# will not be considered source files but generated files (assembler
# output from the compiler), and will be deleted upon "make clean"!
# Even though the DOS/Win* filesystem matches both .s and .S the same,
# it will preserve the spelling of the filenames, and gcc itself does
# care about how the name is spelled on its command-line.
ASRC = 

# List Assembler source files here which must be assembled in ARM-Mode..
#ASRCARM = crt0.S fwu_asm.S 	#normal
ASRCARM = crt.S fasm.S 	#interrupt vectors remapping to RAM

# Path to Linker-Scripts
LINKERSCRIPTPATH = .

## Output format. (can be ihex or binary or both)
## (binary i.e. for openocd and SAM-BA, hex i.e. for lpc21isp and uVision)
#FORMAT = ihex
#FORMAT = binary
FORMAT = both

# Optimization level, can be [0, 1, 2, 3, s]. 
# 0 = turn off optimization. s = optimize for size.
# (Note: 3 is not always the best optimization level. See avr-libc FAQ.)
OPT = s
#OPT = 0

## Using the Atmel AT91_lib produces warning with
## the default warning-levels. 
## yes - disable these warnings; no - keep default settings
#AT91LIBNOWARN = yes
AT91LIBNOWARN = no

# Debugging format.
# Native formats for AVR-GCC's -g are stabs [default], or dwarf-2.
# AVR (extended) COFF requires stabs, plus an avr-objcopy run.
#DEBUG = stabs
DEBUG = dwarf-2

# List any extra directories to look for include files here.
#     Each directory must be seperated by a space.
EXTRAINCDIRS = 

# List any extra directories to look for library files here.
#     Each directory must be seperated by a space.
#EXTRA_LIBDIRS = ../arm7_efsl_0_2_4
EXTRA_LIBDIRS = #C:\GNUARM\arm-elf\lib\ #Dima


# Compiler flag to set the C Standard level.
# c89   - "ANSI" C
# gnu89 - c89 plus GCC extensions
# c99   - ISO C99 standard (not yet fully implemented)
# gnu99 - c99 plus GCC extensions
CSTANDARD = -std=gnu99

# Place -D or -U options for C here
CDEFS =  -D$(RUN_MODE) -D$(MICRO_TYPE) -D$(MY_DEBUG) -DVER=$(VER) -DREV=$(REVISION) -D$(DISPLAY) -D$(MODEM) -D$(HARDWARE) 
CDEFS += -D$(DEVICE_1) -D$(DEVICE_2) -D$(OPTION_1) -D$(OPTION_2) -DVREV=$(VER) 
CDEFS += -Dday=$(DAY) -Dmonth=$(MONTH) -Dyear=$(YEAR)

# Place -I options here
CINCS =

# Place -D or -U options for ASM here
ADEFS =  -D$(RUN_MODE)

ifdef VECTOR_LOCATION
CDEFS += -D$(VECTOR_LOCATION)
ADEFS += -D$(VECTOR_LOCATION)
endif

# CDEFS += -D__Winarm__ -D__WINARMSUBMDL_$(SUBMDL)__
# ADEFS += -D__WinARM__ -D__WINARMSUBMDL_$(SUBMDL)__

# Compiler flags.

ifeq ($(USE_THUMB_MODE),YES)
THUMB    = -mthumb
THUMB_IW = -mthumb-interwork
else 
THUMB    = 
THUMB_IW = 
endif


#  -g*:          generate debugging information
#  -O*:          optimization level
#  -f...:        tuning, see GCC manual and avr-libc documentation
#  -Wall...:     warning level
#  -Wa,...:      tell GCC to pass this to the assembler.
#    -adhlns...: create assembler listing
#
# Flags for C and C++ (arm-elf-gcc/arm-elf-g++)
CFLAGS = -g$(DEBUG)
CFLAGS += $(CDEFS) $(CINCS)
CFLAGS += -O$(OPT)
CFLAGS += -Wall -Wcast-align -Wimplicit 
CFLAGS += -Wpointer-arith -Wswitch
CFLAGS += -ffunction-sections -fdata-sections
CFLAGS += -Wredundant-decls -Wreturn-type -Wshadow -Wunused
CFLAGS += -Wa,-adhlns=$(subst $(suffix $<),.lst,$<) 
CFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS))

# flags only for C
CONLYFLAGS += -Wnested-externs 
CONLYFLAGS += $(CSTANDARD)

ifneq ($(AT91LIBNOWARN),yes)
#AT91-lib warnings with:
CFLAGS += -Wcast-qual
CONLYFLAGS += -Wmissing-prototypes 
CONLYFLAGS += -Wstrict-prototypes
CONLYFLAGS += -Wmissing-declarations
endif

# flags only for C++ (arm-elf-g++)
# CPPFLAGS = -fno-rtti -fno-exceptions
CPPFLAGS = 

# Assembler flags.
#  -Wa,...:    tell GCC to pass this to the assembler.
#  -ahlns:     create listing
#  -g$(DEBUG): have the assembler create line number information
ASFLAGS = $(ADEFS) -Wa,-adhlns=$(<:.S=.lst),-g$(DEBUG)


#Additional libraries.

# Extra libraries
#    Each library-name must be seperated by a space.
#    To add libxyz.a, libabc.a and libefsl.a: 
#    EXTRA_LIBS = xyz abc efsl
#EXTRA_LIBS = efsl
EXTRA_LIBS = #C:\GNUARM\arm-elf\lib\ #Dima

#Support for newlibc-lpc (file: libnewlibc-lpc.a)
#NEWLIBLPC = -lnewlib-lpc #comment by Dima

# MATH_LIB = -lm

# CPLUSPLUS_LIB = -lstdc++


# Linker flags.
#  -Wl,...:     tell GCC to pass this to linker.
#    -Map:      create map file
#    --cref:    add cross reference to  map file
LDFLAGS = -nostartfiles -Wl,-Map=$(TARGET).map,--cref,--gc-sections 

# LDFLAGS += -L$(TCHAIN_PATH)
# #LDFLAGS += $(TCHAIN_PATH)/lib/gcc/arm-none-eabi/4.7.0/libgcc.a
# LDFLAGS += $(TCHAIN_PATH)/lib/libiberty.a

#LDFLAGS += $(NEWLIBLPC) $(MATH_LIB)
#LDFLAGS += -lm -lc -lgcc 
#LDFLAGS += $(CPLUSPLUS_LIB)
#LDFLAGS += $(patsubst %,-L%,$(EXTRA_LIBDIRS))
#LDFLAGS += $(patsubst %,-l%,$(EXTRA_LIBS))

#LDFLAGS += -lc

#Set Linker-Script Depending On Selected Memory and Controller
ifeq ($(RUN_MODE),RAM_RUN)
LDFLAGS +=-T$(LINKERSCRIPTPATH)/$(SUBMDL)-RAM.ld
else 
LDFLAGS +=-T$(LINKERSCRIPTPATH)/$(SUBMDL)-ROM.ld
endif

# ---------------------------------------------------------------------------
# Flash-Programming support using lpc21isp by Martin Maurer 
# only for Philips LPC and Analog ADuC ARMs
#
# Settings and variables:
#LPC21ISP = lpc21isp
LPC21ISP = lpc21isp
LPC21ISP_PORT = com1
LPC21ISP_BAUD = 38400
LPC21ISP_XTAL = 12000
# other options:
# * verbose output: -debug
# * enter bootloader via RS232 DTR/RTS (only if hardware supports this
#   feature - see Philips AppNote): -control
LPC21ISP_OPTIONS = -control
#LPC21ISP_OPTIONS += -debug
# ---------------------------------------------------------------------------


# Define directories, if needed.
## DIRARM = c:/WinARM/
## DIRARMBIN = $(DIRAVR)/bin/
## DIRAVRUTILS = $(DIRAVR)/utils/bin/

# Define programs and commands.
SHELL = sh
CC = $(TCHAIN)-gcc
CPP = $(TCHAIN)-g++
AR = $(TCHAIN)-ar
OBJCOPY = $(TCHAIN)-objcopy
OBJDUMP = $(TCHAIN)-objdump
SIZE = $(TCHAIN)-size
NM = $(TCHAIN)-nm
REMOVE = rm -f
REMOVEDIR = rm -f -r
COPY = cp

# Define Messages
# English
MSG_ERRORS_NONE = Errors: none
MSG_BEGIN = "-------- begin (mode: $(RUN_MODE)) --------"
MSG_END = --------  end  --------
MSG_SIZE_BEFORE = Size before: 
MSG_SIZE_AFTER = Size after:
MSG_FLASH = Creating load file for Flash:
MSG_EXTENDED_LISTING = Creating Extended Listing:
MSG_SYMBOL_TABLE = Creating Symbol Table:
MSG_LINKING = Linking:
MSG_COMPILING = Compiling C:
MSG_COMPILING_ARM = "Compiling C (ARM-only):"
MSG_COMPILINGCPP = Compiling C++:
MSG_COMPILINGCPP_ARM = "Compiling C++ (ARM-only):"
MSG_ASSEMBLING = Assembling:
MSG_ASSEMBLING_ARM = "Assembling (ARM-only):"
MSG_CLEANING = Cleaning project:
MSG_FORMATERROR = Can not handle output-format
MSG_LPC21_RESETREMINDER = You may have to bring the target in bootloader-mode now.

# Define all object files.
COBJ      = $(SRC:.c=.o) 
AOBJ      = $(ASRC:.S=.o)
COBJARM   = $(SRCARM:.c=.o)
AOBJARM   = $(ASRCARM:.S=.o)
CPPOBJ    = $(CPPSRC:.cpp=.o) 
CPPOBJARM = $(CPPSRCARM:.cpp=.o)

# Define all listing files.
LST = $(ASRC:.S=.lst) $(ASRCARM:.S=.lst) $(SRC:.c=.lst) $(SRCARM:.c=.lst)
LST += $(CPPSRC:.cpp=.lst) $(CPPSRCARM:.cpp=.lst)

# Compiler flags to generate dependency files.
### GENDEPFLAGS = -Wp,-M,-MP,-MT,$(*F).o,-MF,.dep/$(@F).d
#GENDEPFLAGS = -MD -MP -MF .dep/$(@F).d

# Combine all necessary flags and optional flags.
# Add target processor to flags.
ALL_CFLAGS  = -mcpu=$(MCU) $(THUMB_IW) -I. $(CFLAGS) -mtune=$(MCU)
ALL_ASFLAGS = -mcpu=$(MCU) $(THUMB_IW) -I. -x assembler-with-cpp $(ASFLAGS)


# Default target.
all: begin depend gccversion sizebefore build sizeafter prog finished end

ifeq ($(FORMAT),ihex)
build: elf hex lss sym
hex: $(TARGET).hex
IMGEXT=hex
else 
ifeq ($(FORMAT),binary)
build: elf bin lss sym
bin: $(TARGET).bin
IMGEXT=bin
else 
ifeq ($(FORMAT),both)
build: elf hex bin lss sym
hex: $(TARGET).hex
bin: $(TARGET).bin
else 
$(error "$(MSG_FORMATERROR) $(FORMAT)")
endif
endif
endif

elf: $(TARGET).elf
lss: $(TARGET).lss 
sym: $(TARGET).sym


# Eye candy.
begin:
	@echo
	@echo $(MSG_BEGIN)

finished:
	@echo $(MSG_ERRORS_NONE)

end:
	@echo $(MSG_END)
	@echo


# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
ELFSIZE = $(SIZE) -A $(TARGET).elf
sizebefore:
	@if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); echo; fi

sizeafter:
	@if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); echo; fi


# Display compiler version information.
gccversion : 
	@$(CC) --version

# Program the device.
ifeq ($(FLASH_TOOL),UVISION)
# Program the device with Keil's uVision (needs configured uVision-Workspace). 
program: $(TARGET).hex
	@echo
	@echo "Programming with uVision"
	$(REMOVE) ../Common_WinARM/$(TARGET).hex
	$(COPY) $(TARGET).hex ../Common_WinARM/
	C:\Keil\uv3\Uv3.exe -f ..\Common_WinARM\uvisionflash.Uv2
else
ifeq ($(FLASH_TOOL),OPENOCD)
# Program the device with Dominic Rath's OPENOCD in "batch-mode", needs cfg and "reset-script".
program: $(TARGET).bin
	@echo
	@echo "Programming with OPENOCD"
	openocd_start_flash.cmd
else
# Program the device.  - lpc21isp will not work for SAM7
program: $(TARGET).hex
	@echo
	@echo $(MSG_LPC21_RESETREMINDER)
	$(LPC21ISP) $(LPC21ISP_OPTIONS) $(LPC21ISP_FLASHFILE) $(LPC21ISP_PORT) $(LPC21ISP_BAUD) $(LPC21ISP_XTAL)
endif
endif


# Create final output file (.hex) from ELF output file.
%.hex: %.elf
	@echo
	@echo $(MSG_FLASH) $@
	$(OBJCOPY) -O ihex $< $@

# Create final output file (.bin) from ELF output file.
%.bin: %.elf
	@echo
	@echo $(MSG_FLASH) $@
	$(OBJCOPY) -O binary $< $@


# Create extended listing file from ELF output file.
# testing: option -C
%.lss: %.elf
	@echo
	@echo $(MSG_EXTENDED_LISTING) $@
	$(OBJDUMP) -h -S -C $< > $@


# Create a symbol table from ELF output file.
%.sym: %.elf
	@echo
	@echo $(MSG_SYMBOL_TABLE) $@
	$(NM) -n $< > $@


# Link: create ELF output file from object files.
.SECONDARY : $(TARGET).elf
.PRECIOUS : $(AOBJARM) $(AOBJ) $(COBJARM) $(COBJ) $(CPPOBJ) $(CPPOBJARM)
%.elf:  $(AOBJARM) $(AOBJ) $(COBJARM) $(COBJ) $(CPPOBJ) $(CPPOBJARM)
	@echo
	@echo $(MSG_LINKING) $@
	$(CC) $(THUMB) $(ALL_CFLAGS) $(AOBJARM) $(AOBJ) $(COBJARM) $(COBJ) $(CPPOBJ) $(LIBNAME) $(CPPOBJARM) --output $@ $(LDFLAGS)
#	$(CPP) $(THUMB) $(ALL_CFLAGS) $(AOBJARM) $(AOBJ) $(COBJARM) $(COBJ) $(CPPOBJ) $(CPPOBJARM) --output $@ $(LDFLAGS)

# Compile: create object files from C source files. ARM/Thumb
$(COBJ) : %.o : %.c
	@echo
	@echo $(MSG_COMPILING) $<
	$(CC) -c $(THUMB) $(ALL_CFLAGS) $(CONLYFLAGS) $< -o $@ 

# Compile: create object files from C source files. ARM-only ======================================================
$(COBJARM) : %.o : %.c 
	@echo
	@echo $(MSG_COMPILING_ARM) $<
	$(CC) -c $(ALL_CFLAGS) $(CONLYFLAGS) $< -o $@

# Compile: create object files from C++ source files. ARM/Thumb
$(CPPOBJ) : %.o : %.cpp
	@echo
	@echo $(MSG_COMPILINGCPP) $<
	$(CPP) -c $(THUMB) $(ALL_CFLAGS) $(CPPFLAGS) $< -o $@ 

# Compile: create object files from C++ source files. ARM-only
$(CPPOBJARM) : %.o : %.cpp
	@echo
	@echo $(MSG_COMPILINGCPP_ARM) $<
	$(CPP) -c $(ALL_CFLAGS) $(CPPFLAGS) $< -o $@ 


# Compile: create assembler files from C source files. ARM/Thumb
## does not work - TODO - hints welcome
##$(COBJ) : %.s : %.c
##	$(CC) $(THUMB) -S $(ALL_CFLAGS) $< -o $@


# Assemble: create object files from assembler source files. ARM/Thumb
$(AOBJ) : %.o : %.S
	@echo
	@echo $(MSG_ASSEMBLING) $<
	$(CC) -c $(THUMB) $(ALL_ASFLAGS) $< -o $@


# Assemble: create object files from assembler source files. ARM-only
$(AOBJARM) : %.o : %.S
	@echo
	@echo $(MSG_ASSEMBLING_ARM) $<
	$(CC) -c $(ALL_ASFLAGS) $< -o $@



# Target: clean project.
ca: begin clean_list clear_target finished end

c: begin clean_list finished end

clear_target:
	$(REMOVE) $(TARGET).hex
	$(REMOVE) $(TARGET).bin
	$(REMOVE) $(TARGET).elf

clean_list :
	@echo
	@echo $(MSG_CLEANING)
	$(REMOVE) $(TARGET).map
	$(REMOVE) $(TARGET).sym
	$(REMOVE) $(TARGET).lnk
	$(REMOVE) $(TARGET).lss
	$(REMOVE) $(COBJ)
	$(REMOVE) $(CPPOBJ)
	$(REMOVE) $(AOBJ)
	$(REMOVE) $(COBJARM)
	$(REMOVE) $(CPPOBJARM)
	$(REMOVE) $(AOBJARM)
	$(REMOVE) $(LST)
	$(REMOVE) .depend


depend: $(CSRCS)
	$(CC) $(CFLAGS) -MM $^ > .depend || rm -f .depend



# Listing of phony targets.
.PHONY : all begin finish end sizebefore sizeafter gccversion \
build elf hex bin lss sym clean_list program prog d e p depend clear_target

# programming
ifeq ($(f),p)
prog: p
	echo
else
prog: 
	@echo
endif

e:	
	etags *.h *.c  

d:
	arm-elf-insight.exe -se main.elf 

sv: 
	../../SV.sh

COMPORT = COM17

p: $(TARGET).bin
#	$(LOADER) $(TARGET).bin $(COMPORT) a c
	$(LOADER) $(TARGET).bin $(LOADER_DEV) 
# 	FM.EXE "DEVICE(LPC2368,72) ERASE(0, PROTECTISP) ERASE(1, PROTECTISP) ERASE(2, PROTECTISP) ERASE(3, PROTECTISP) ERASE(4, PROTECTISP) ERASE(5, PROTECTISP) HEXFILE(main.hex, NOCHECKSUMS, NOFILL, PROTECTISP) COM(1,115200) HIGHSPEED(12,115200) HALFDUPLEX HARDWARE(BOOTEXEC, 50, 100)"



-include .depend

